package main

import (
	"craft/core"
	"craft/core/token"
	"fmt"
)

func main() {
	var _tokens token.Tokens = nil
	l := core.LexicalAnalyzer{}

	_script := "age>=45"
	_tokens = l.Analyze(_script)
	fmt.Println("[parse]:", _script)
	fmt.Println(_tokens)

	_script = "int a=50"
	_tokens = l.Analyze(_script)
	fmt.Println("[parse]:", _script)
	fmt.Println(_tokens)

	_script = "2+3*5"
	_tokens = l.Analyze(_script)
	fmt.Println("[parse]:", _script)
	fmt.Println(_tokens)
}
